package com.spzx.order.api;

import com.spzx.common.core.constant.ServiceNameConstants;
import com.spzx.common.core.domain.R;
import com.spzx.order.domain.OrderInfo;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = ServiceNameConstants.ORDER_SERVICE,
fallbackFactory = RemoteOrderServiceFactory.class)
public interface RemoteOrderService {
    @Operation(summary = "内部调用接口：根据订单号查询订单详情")
    @GetMapping("orderInfo/getPaymentInfo/{orderNo}")
    public R<OrderInfo> getPaymentInfo(@PathVariable("orderNo")String orderNo);
}
